home *** CD-ROM | disk | FTP | other *** search
/ Let's Discover Texas! / Let's Discover Texas!.iso / pc / FILES / TIME.dxr / 00003_endTimeline Script.ls < prev    next >
Encoding:
Text File  |  2001-01-04  |  859 b   |  39 lines

  1. global frameSpeed, direction
  2.  
  3. on exitFrame me
  4.   if direction = "right" then
  5.     if the frameLabel <> "Last" then
  6.       go(the frame + frameSpeed)
  7.       if soundBusy(3) = 0 then
  8.         sound(3).play(member("VisorHum"))
  9.       end if
  10.     end if
  11.   else
  12.     if direction = "left" then
  13.       if the frameLabel <> "Start" then
  14.         go(the frame - frameSpeed)
  15.         if soundBusy(3) = 0 then
  16.           sound(3).play(member("VisorHum"))
  17.         end if
  18.       else
  19.         go("First")
  20.       end if
  21.     end if
  22.   end if
  23.   if (direction <> "left") or (direction <> "right") then
  24.     go(the frame)
  25.   end if
  26. end
  27.  
  28. on enterFrame me
  29.   if not soundBusy(2) then
  30.     puppetSound(2, "S-TWcongrats")
  31.     sprite(150).member = "StarStatic"
  32.   else
  33.     sprite(150).member = "StarTalking: 27/5"
  34.   end if
  35.   if soundBusy(4) then
  36.     sound(4).volume = sound(4).volume - 10
  37.   end if
  38. end
  39.